package com.modificial.shiro.system.dao;

import com.modificial.shiro.mapper.BaseMapper;
import com.modificial.shiro.system.domain.SysRolePermission;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;

/**
 * @author modificial
 * @date 2018/8/4 0004
 * @company modificial_org
 * @description 角色权限操作
 */
@Repository
public interface RolePermissionDao extends BaseMapper<SysRolePermission> {
    /**
     * 根据角色id删除权限信息
     * @param roleId 角色id
     * @return
     */
    @Delete(value = "delete from sys_role_permisson where role_id=#{roleId}")
     int deletePermissionByRole(String roleId);
}
